package cn.kfu.controller;

import cn.kfu.pojo.Storage;
import cn.kfu.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/storage")
public class StorageController {
    @Autowired
    private StorageService storageService;

    @RequestMapping("/all")
    public List<Storage> findAll() {
        return storageService.findAll();
    }
}
